package com.none.web.model;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * TNewTag entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_new_tag")
public class TNewTag implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -7949479005411729861L;
	private TNewTagId id;

	// Constructors

	/** default constructor */
	public TNewTag() {
	}

	/** full constructor */
	public TNewTag(TNewTagId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({ @AttributeOverride(name = "newsId", column = @Column(name = "news_id", length = 32)),
			@AttributeOverride(name = "tagId", column = @Column(name = "tag_id", length = 32)) })
	public TNewTagId getId() {
		return this.id;
	}

	public void setId(TNewTagId id) {
		this.id = id;
	}

}